<?
require(ROOT_PATH.'code/bean/smarty/Smarty.class.php');
$tpl = new  Smarty;

if(!defined('TEMPLATE_DIR')) define('TEMPLATE_DIR','');
$tpl->left_delimiter='{{';
$tpl->right_delimiter='}}';
$tpl->template_dir = ROOT_PATH.'/tpl/'.TEMPLATE_DIR;
$tpl->compile_dir =ROOT_PATH.'code/bean/smarty/cache/';
$tpl->cache_dir =ROOT_PATH.'code/bean/smarty/cache/';
$tpl->config_dir =ROOT_PATH.'code/bean/smarty/';
$tpl->caching=false;
//$tpl->use_sub_dirs=true;
$tpl->cache_lifetime=0;


if(isset($_COOKIE['cs_return_url']) && $_COOKIE['cs_return_url']!='') $url=$_COOKIE['cs_return_url'];
else $url='admin/index.php?flag='.urlencode('未受理');
$tpl->assign('cs_return_url',$url);

if(isset($_COOKIE['user_return_url']) && $_COOKIE['user_return_url']!='') $url=$_COOKIE['user_return_url'];
else $url='my_ques.php';
$tpl->assign('user_return_url',$url);
?>